<script setup lang="ts">

import Child from "@/vueTest/c/05_$attrs/Child.vue";
import {ref} from "vue";
const a = ref(1)
const b = ref(2)
const c = ref(3)
const d = ref(4)

function updateA(value) {
  a.value += value

}
</script>

<template>
<h2>父组件</h2>
  <h3>a={{a}}</h3>
  <hr>
  <Child :a="a" :b="b" :c="c" :d="d" v-bind="{x:'x',y:'y', updateA: updateA}"/>
</template>

<style scoped>

</style>